<?php
/**
 * Author: Traveler
 * Time  : 2021/9/5 22:56
 */

namespace app;


/**
 * Class Route 应用路由对象类
 *
 * @package app
 */
class Route extends \think\Route
{
    /**
     * REST定义
     *
     * @var array
     */
    protected $rest = [
        'index'  => ['get', '', 'select'],
        'show'   => ['get', '/<id>', 'find'],
        'create' => ['post', '', 'create'],
        'update' => ['put', '/<id>', 'update'],
        'delete' => ['delete', '/<id>', 'delete'],
    ];
}